import Vue from 'vue'
import Router from 'vue-router'

import Splash from '@/views/Splash'
import Register from '@/views/Register'
import Login from '@/views/Login'
import Uptl from '@/views/Uptl'
import Pcle from '@/views/Pcle'
import Forget from '@/views/Forget'
import Main from '@/views/Main'
import Home from '@/views/Home'
import Drill from '@/views/Drill'
import Vip from '@/views/Vip'
import Find from '@/views/Find'
import Dynamic from '@/views/Dynamic'
import Rend from '@/views/Rend'
import Myname from '@/views/Myname'
import Myplce from '@/views/Myplce'
import Myxing from '@/views/Myxing'
import Mybiao from '@/views/Mybiao'
import Xuan from '@/views/Xuan'
import Pipei from '@/views/Pipei'
import Mylishi from '@/views/Mylishi'
import Runing from '@/views/Runing'
import Runsetting from '@/views/Run-setting'
import Friendpm from '@/views/Friendpm'
import Homexq from '@/views/Homexq'
import Homexqt from '@/views/Homexqt'
import Homexqs from '@/views/Homexqs'
import Hxtb from '@/views/Hxtb'
import Zrxl from '@/views/Zrxl'
import Tbsz from '@/views/Tbsz'
import Szts from '@/views/Szts'
import Xtts from '@/views/Xtts'
import Xzts from '@/views/Xzts'


import Jx from '@/views/Jx'
import Sp from '@/views/Sp'
import Sc from '@/views/Sc'
import Hti from '@/views/Hti'
import Cart from '@/views/Cart'
import Fs from '@/views/Fs'
import Zb from '@/views/Zb'
import Sw from '@/views/Sw'
import Detail from '@/views/Detail'
import Sure from '@/views/Sure'
import Addres from '@/views/Addres'
import Addaddres from '@/views/Addaddres'
import Spdetail from '@/views/Spdetail'
import Hot from '@/views/Hot'
import Content from '@/views/Content'
import Tiao from '@/views/Tiao'
import Allorder from '@/views/Allorder'
import Shuaxin from '@/views/Shuaxin'
import Recommend from '../views/drill-c/Recommend'
import Square from '../views/drill-c/Square'
import Videotraining from '../views/drill-c/recommend/Videotraining'
import Item from '../views/drill-c/recommend/Item'
import mtime from '../views/drill-c/recommend/mtime'

import Frecommend from '@/views/Frecommend'
import Attention from '@/views/Attention'
import Nearby from '@/views/Nearby'
import Addfriend from '@/views/Addfriend'
import Listtopics from '@/views/Listtopics'
import Dynamicdetails from '@/views/Dynamicdetails'
import Subscriber from '@/views/Subscriber'
import Wallpaper from '@/views/Wallpaper'
import Medal from '@/views/Medal'
import Myspeed from '@/views/Myspeed'
import Personaldata from '@/views/Personaldata'
import Messagecenter from '@/views/Messagecenter'
import Allorders from '@/views/Allorders'
import Mycoupon from '@/views/Mycoupon'
import Cdkey from '@/views/Cdkey'
import Invite from '@/views/Invite'
import Myintegral from '@/views/Myintegral'
import Mydynamic from '@/views/Mydynamic'
import Myfavorite from '@/views/Myfavorite'
import Mydownload from '@/views/Mydownload'
import Followus from '@/views/Followus'
import Setting from '@/views/Setting'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/',
     redirect:'/splash'
    },

    {
      path:'/splash',
      name:'Splash',
      component:Splash
    },

    {
      path:'/Day',
      name:'Day',
      component:()=>import('../views/vip/Day')
    },
    {
      path:'/vippri',
      name:'vippri',
      component:()=>import('../views/vip/vipPri')
    },
    {
      path:'/agreement',
      name:'agreement',
      component:()=>import('../views/vip/Agreement')
    },
    {
      path:'/zselected',
      name:'zselected',
      component:()=>import('../views/drill-c/square/zSelected')
    },
    {
      path:'/buyvip',
      name:'buyvip',
      component:()=>import('../views/vip/Buyvip')
    },
    {
      path:'/wselected',
      name:'wselected',
      component:()=>import('../views/drill-c/square/wSelected')
    },
    {
      path:'/selected',
      name:'selected',
      component:()=>import('../views/drill-c/square/Selected')
    },
    {
      path:'/releasetra',
      name:'releasetra',
      component:()=>import('../views/drill-c/square/Releasetra')
    },
    {
      path:'/searchtra',
      name:'searchtra',
      component:()=>import('../views/drill-c/square/Searchtra')
    },
    {
      path:'/freetra',
      name:'freetra',
      component:()=>import('../views/drill-c/recommend/Freetra')
    },
    {
      path:'/d-video',
      name:'d-video',
      component:()=>import('../views/drill-c/recommend/D-video')
    },
    {
      path:'/mtime',
      name:'mtime',
      component:()=>import('../views/drill-c/recommend/mtime')
    },
    {
      path:'/traItem',
      name:'traitem',
      component:()=>import('../views/drill-c/recommend/traItem')
    },
    {
      path:'/customtraining',
      name:'customtraining',
      component:()=>import('../views/drill-c/recommend/Customtraining')
    },
    {
      path:'/activek',
      name:'activek',
      component:()=>import('../views/drill-c/recommend/ActiveK')
    },
    {
      path:'/coach',
      name:'coach',
      component:()=>import('../views/drill-c/recommend/Coach')
    },
    {
      path:'/item',
      name:'item',
      component:Item
    },

    {
      path:'/search',
      name:'search',
      component:()=>import('../views/search')
    },
    {
      path: '/splash',
      name: 'Splash',
      component: Splash,
    },
    {
      path: '/register',
      name: 'Register',
      component: Register,
     
    },
    {
      path: '/uptl',
      name: 'Uptl',
      component: Uptl,
    },
    {
      path: '/pcle',
      name: 'Pcle',
      component: Pcle,
    },
    {
      path: '/login',
      name: 'Login',
      component: Login,
    
    }, {
      path: '/forget',
      name: 'Forget',
      component: Forget,
    },
    {
      path:'/rend',
      name:'Rend',
      component:Rend


    },
    {
      path:'/myname',
      name:'Myname',
      component:Myname

    },
    {
      path:'/myplce',
      name:'Myplce',
      component:Myplce


    },
    {
      path:'/myxing',
      name:'Myxing',
      component:Myxing

    },
    {
      path:'/mybiao',
      name:'Mybiao',
      component:Mybiao


    },
  

    {
      path: '/xuan',
      name: 'Xuan',
      component:Xuan 


    },
    {
      path: '/pipei',
      name: 'Pipei',
      component:Pipei 



    },
  

    {
      path: '/xuan',
      name: 'Xuan',
      component:Xuan 


    },
    {
      path: '/pipei',
      name: 'Pipei',
      component:Pipei 



    },
  

    {
      path:'/videotraining',
      name:'videoTraining',
      component:Videotraining
    },
    {
      path:'/trainingprogram',
      name:'trainingProgram',
      component:()=>import('../views/drill-c/recommend/TrainingProgram')
    },
    {
      path:'/freetraining',
      name:'freetraining',
      component:()=>import('../views/drill-c/recommend/Freetraining')
    },
    {
      path:'/trainingcamp',
      name:'trainingcamp',
      component:()=>import('../views/drill-c/recommend/Trainingcamp')
    },
    {
      path: '/main',
      redirect:'/home',
      name: 'Main',
      component: Main,
      children:[
        {
          path: '/home',
          component: Home,
        },
       
        {
          path: '/drill',
          component: Drill,
          redirect:'/recommend',
          children:[
            {
              path:'/recommend',
              name:'Recommend',
              component:Recommend
            },
            {
              path:'/square',
              name:'square',
              component:Square
            },

          ]
        },
        {
          path: '/vip',
          component: Vip,
        },
        {
          path: '/find',
          component: Find,
          redirect:'/jx',
          children:[
            {
            path: '/jx',
            component: Jx,
            },
            {
              path: '/sp',
              component: Sp,
            },
            {
              path: '/sc',
              component: Sc,
            }
          ]
        },
        {
          path: '/hti',
          component: Hti,
          },
        {
          path: '/dynamic',
          redirect:'/frecommend',
          component: Dynamic,
          'children':[
            {
              path:'/frecommend',
              name:'Frecommend',
              component:Frecommend
            },
            {
              path:'/attention',
              name:'attention',
              component:Attention
            },
            {
              path:'/nearby',
              name:'nearby',
              component:Nearby
            }
          ]
        },

        {
          path:'/addfriend',
          name:'Addfriend',
          component:Addfriend
        },

      ]
    },
    {
      path:'/mylishi',
      name:'Mylishi',
      component:Mylishi


    },
    {
      path:'/runing',
      name:'Runing',
      component:Runing


    },
    {
      path:'/run-setting',
      name:'Run-setting',
      component:Runsetting

    },
    {

      path:'/friendpm',
      name:'Friendpm',
      component:Friendpm


    },
    {
      path:'/homexq',
      name:'Homexq',
      component:Homexq


    },
    {
      path:'/homexqt',
      name:'Homexqt',
      component:Homexqt


    },
    {
      path:'/homexqs',
      name:'Homexqs',
      component:Homexqs


    },
    {

      path:'/hxtb',
      name:'Hxtb',
      component:Hxtb
    },
    {

      path:'/zrxl',
      name:'Zrxl',
      component:Zrxl
    },
    {

      path:'/tbsz',
      name:'Tbsz',
      component:Tbsz
    },
    {

      path:'/szts',
      name:'Szts',
      component:Szts
    },
    {

      path:'/xzts',
      name:'Xzts',
      component:Xzts
    },
    {

      path:'/xtts',
      name:'Xtts',
      component:Xtts
    },
     { path: '/fs',
      name: 'Fs',
      component: Fs, 
    },
    {
      path: '/zb',
      name: 'Zb',
      component: Zb, 
    },
    {
      path: '/sw',
      name: 'Sw',
      component: Sw, 
    },
    {
      path: '/detail/:id',
      name: 'Detail',
      component: Detail, 
    },
    {
      path: '/addres',
      name: 'Addres',
      component: Addres, 
    },
    {
      path: '/addaddres',
      name: 'Addaddres',
      component: Addaddres, 
    },
    {
      path: '/spdetail',
      name: 'Spdetail',
      component: Spdetail, 
    },
    {
      path: '/hot',
      name: 'Hot',
      component: Hot, 
    },
    {
      path: '/content',
      name: 'Content',
      component: Content, 
    },
    {
      path: '/tiao',
      name: 'Tiao',
      component:Tiao, 
    },
    {
      path: '/allorder',
      name: 'Allorder',
      component:Allorder, 
    },
    {
      path:'/shuaxin',
      name:'Shuaxin',
      component:Shuaxin, 
      children:[
        {
          path: '/cart',
          component: Cart, 
        },
        {
          path: '/sure',
          component: Sure, 
        },
      ]
    },


    {
      path:'/listtopics',
      name:'Listtopics',
      component:Listtopics
    },
    {
      path:'/dynamicdetails/:pid',
      name:'Dynamicdetails',
      component:Dynamicdetails
    },
    {
      path:'/subscriber',
      name:'Subscriber',
      component:Subscriber
    },
    {
      path:'/wallpaper',
      name:'Wallpaper',
      component:Wallpaper
    },
    {
      path:'/medal',
      name:'Medal',
      component:Medal
    },
    {
      path:'/myspeed',
      name:'Myspeed',
      component:Myspeed
    },
    {
      path:'/personaldata',
      name:'Personaldata',
      component:Personaldata
    },
    {
      path:'/messagecenter',
      name:'Messagecenter',
      component:Messagecenter
    },
    {
      path:'/allorders',
      name:'Allorders',
      component:Allorders
    },
    {
      path:'/mycoupon',
      name:'Mycoupon',
      component:Mycoupon
    },
    {
      path:'/cdkey',
      name:'Cdkey',
      component:Cdkey
    },
    {
      path:'/invite',
      name:'Invite',
      component:Invite
    },
    {
      path:'/myintegral',
      name:'Myintegral',
      component:Myintegral
    },
    {
      path:'/mydynamic',
      name:'Mydynamic',
      component:Mydynamic
    },
    {
      path:'/myfavorite',
      name:'Myfavorite',
      component:Myfavorite
    },
    {
      path:'/mydownload',
      name:'Mydownload',
      component:Mydownload
    },
    {
      path:'/followus',
      name:'Followus',
      component:Followus
    },
    {
      path:'/setting',
      name:'Setting',
      component:Setting
    },
  

  ]
})
